<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin: 0;padding: 0
        }
        div{
            width: 414px;
            height: 44px;/* 移动端常用高度 88px */
            background: #ccc;
            overflow-x: auto;
            /* overflow-x/y */
        }
        /* ul宽度要大于当前的div，超出才能有滚动条 */
        ul{
            width: 1000px;
            height: 44px;
            background: pink
        }
        /* li浮动:浮动元素一定要加宽高！！！ */
        li{
            width: 99px;
            height: 44px;
            float: left;
            border-right: 1px solid #000;
            line-height: 44px;
            text-align: center;
            list-style: none
        }
        /* 移动端没有！！！ */
        /* li:hover{
            background: #000;
            color: #fff
        } */
    </style>
</head>
<body>
    <div>
        <ul>
            <li>首页1</li>
            <li>首页2</li>
            <li>首页3</li>
            <li>首页4</li>
            <li>首页5</li>
            <li>首页6</li>
            <li>首页7</li>
            <li>首页8</li>
            <li>首页9</li>
            <li>首页10</li>
        </ul>
    </div>
</body>
</html>